package com.banquetmanagementsystem.controller;

import com.banquetmanagementsystem.common.constant.MessageConstant;
import com.banquetmanagementsystem.common.response.Result;
import com.banquetmanagementsystem.pojo.dto.PowerDTO;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;


/**
 * @author 86176
 */
@RestController
public class PowerController {
    @GetMapping("/power")
    public Result<?> getPower(){
        List<PowerDTO> powerDTOList = new ArrayList<>();
        powerDTOList.add(new PowerDTO(1,"qqq"));
        return Result.success( powerDTOList,MessageConstant.OPERATION_SUCCESSFUL);
    }
}
